﻿using System;
using System.Collections.Generic;
using System.Text;
using BaseData.Common;
using TaxData.Tax;

namespace TaxBiz.Tax
{
    /// <summary>
    /// 税款相关配置
    /// </summary>
    public class TaxConfigBiz
    {
        /// <summary>
        /// 获取汇款计算方式
        /// </summary>
        /// <returns>应税计算根据：0，房产计税面积；1，租金收入</returns>
        public static int GetComputeType()
        {
            return TaxConfigData.GetComputeType();
        }

        /// <summary>
        /// 更新税款计算方式
        /// </summary>
        /// <param name="type">应税计算根据：0，房产计税面积；1，租金收入</param>
        /// <param name="optUserID">操作人ID</param>
        /// <returns>更新结果</returns>
        public static bool UpdateComputeType(int type, long optUserID)
        {
            try
            {
                return TaxConfigData.UpdateComputeType(type, optUserID);
            }
            catch
            {
                return false;
            }
        }
    }
}
